package com.lone.design.pattern.creational.abstractfactory;

/**
 * @author Lone
 * @date 2021/9/24 14:12 周五
 */
public class Test {
    public static void main(String[] args) {
        CoffeeStore store = new CoffeeStore(new AmericanCoffeeDessertFactory());
        Coffee coffee = store.orderCoffee();
        System.out.println(coffee.getName());
        Dessert dessert = store.orderDessert();
        dessert.show();
    }
}
